package net.zoneland.zrdp.framework.web.common.enums;

import lombok.Getter;
import net.zoneland.zrdp.common.enums.BaseEnum;

/**
 * 流程工单状态.
 * @version v1.0
 */
@Getter
public enum TaskStatusEnum implements BaseEnum<Integer> {

    READY(1, "就绪"),
    FINISH(2, "完成"),
    SUSPEND(3, "挂起"),
    NEW(11, "新建"),
    DRAFT(10, "草稿"),
    ASSIGNED(13, "被指派"),
    STOP(4, "终止"),
    SINGLE_ASSIGNMENT(17, "单向指派");

    /** 枚举值. **/
    private final Integer value;
    /** 枚举名称. **/
    private final String name;

    TaskStatusEnum(final Integer value, final String name) {
        this.value = value;
        this.name = name;
    }
}
